package com.define.ssh.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.define.ssh.dao.RoleFuncDao;
import com.define.ssh.model.RoleFunc;
import com.define.ssh.service.RoleFuncService;

@Service("roleFuncServiceImpl")
public class RoleFuncServiceImpl extends BaseServiceImpl<RoleFunc, Long>
		implements RoleFuncService {

	@Resource(name = "roleFuncDaoImpl")
	private RoleFuncDao roleFuncDao;

	@Resource(name = "roleFuncDaoImpl")
	public void setBaseDao(RoleFuncDao roleFuncDao) {
		super.setBaseDao(roleFuncDao);
	}

	/***
	 * 删除该角色 对应的权限
	 * 
	 * @param role_id
	 */
	@Override
	public void delRoleFuncByRoleId(Long role_id) {
		roleFuncDao.delRoleFuncByRoleId(role_id);
	}
}
